<?php

/**
 * Store and respresente MySQL connection.
 * @package Core
 * @subpackage Database
 * @author kovacsricsi
 */
class MySQLConnection
{
	/**
	 * MySQL connection resource.
	 * @access protected
	 * @var resource
	 */
	protected $_connection;

	/**
	 * Constructor store connection.
	 * @access public
	 * @param resource $connecion
	 * @return void
	 */
	public function __construct($connecion)
	{
		$this->_connection = $connecion;
	}

	/**
	 * Destructor close connection.
	 * @access public
	 * @return void
	 */
	public function __destruct()
	{
		mysql_close($this->_connection);
	}

	/**
	 * Returns with resource.
	 * @access public
	 * @return resource
	 */
	public function getConnection()
	{
		return $this->_connection;
	}
}

?>
